import hashlib

from django.contrib.auth import authenticate

user = authenticate(username='123',
                    password='123')
print(user)